package com.taichuan.selfcheck.eventbus;

/**
 * 该类主要用于
 *
 * @author CamelLuo
 * @version 2021/6/30
 */
public class UsbConnectStateEvent {

    /**
     * USB是否连接设备
     */
    private boolean isConnected;

    /**
     * 设备是否以主机模式连接USB
     */
    private boolean isHostConnected;

    /**
     * 设备是否连接Adb功能模式
     */
    private boolean isAdb;
    /**
     * 设备的USB连接是否有配置信息
     */
    private boolean configured;

    public UsbConnectStateEvent(boolean isConnected, boolean isHostConnected, boolean isAdb, boolean configured) {
        this.isConnected = isConnected;
        this.isHostConnected = isHostConnected;
        this.isAdb = isAdb;
        this.configured = configured;
    }

    public boolean isConnected() {
        return isConnected;
    }

    public void setConnected(boolean connected) {
        isConnected = connected;
    }

    public boolean isHostConnected() {
        return isHostConnected;
    }

    public void setHostConnected(boolean hostConnected) {
        isHostConnected = hostConnected;
    }

    public boolean isAdb() {
        return isAdb;
    }

    public void setAdb(boolean adb) {
        isAdb = adb;
    }

    public boolean isConfigured() {
        return configured;
    }

    public void setConfigured(boolean configured) {
        this.configured = configured;
    }

    @Override
    public String toString() {
        return "UsbConnectStateEvent{" +
                "isConnected=" + isConnected +
                ", isHostConnected=" + isHostConnected +
                ", isAdb=" + isAdb +
                ", configured=" + configured +
                '}';
    }
}
